makeClipRevealAnimation

open fun makeClipRevealAnimation(@NonNull source: View, startX: Int, startY: Int, width: Int, height: Int): ActivityOptionsCompat(source)

Create an ActivityOptions specifying an animation where the new activity is revealed from a small originating area of the screen to its final full representation.

Return

Returns a new ActivityOptions object that you can use to supply these options as the options Bundle when starting an activity.

Parameters

source

The View that the new activity is animating from. This defines the coordinate space for startX and startY.

startX

The x starting location of the new activity, relative to source.

startY

The y starting location of the activity, relative to source.

width

The initial width of the new activity.

height

The initial height of the new activity.